package com.liuzhilong.infrastructure.basic.state;

import lombok.SneakyThrows;

public class UseCase {
    @SneakyThrows
    public static void main(String[] args) {
        Host host = Host.create(new RealState1());
        //循环调用100次
        for (int i = 0; i < 100; i++) {
            host.hostDoSome();
            Thread.sleep(1000);
        }
    }
}
